package com.scs.application.modules.device.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.FlowEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 *  设备工作表实体类
 */
@Data
@Accessors(chain = true)
@TableName("device_work")
public class DeviceWork extends FlowEntity {
    //业务单号
    private String busKey;
    private String poId;
    private String poKey;

    //业务标题
    private String busTitle;

    //业务日期
    private Date busDate;

    //经手人
    private String busUser;

    //经手人工号
    private String busUserCode;

    //备注
    private String remark;

    //目标科室id
    private String deptIdTo;

    //目标科室名称
    private String deptNameTo;

    //来源科室id
    private String deptIdFrom;

    //来源科室名称
    private String deptNameFrom;

    //业务类型
    private String busType;

    //盘点类型
    private String checkType;
    //申请电话
    private String applyPhone;

    //故障类型
    private String faultType;

    //紧急程度
    private String needLevel;

    //故障等级
    private String faultLevel;

    //要求完成时间
    private Date needDate;

    private String supplierName;
    private String supplierId;
    private String supplierCode;
    private String supplierUser;
    private String supplierPhone;
    private String supplierMail;

    private String hospitalName;
    private String hospitalCode;
    private String hospitalUser;
    private String hospitalPhone;
    private String hospitalMail;


    //维修结果
    private String repairResult;
    //维修人
    private String repairUser;

    // 维修完成时间
    private Date repairTimeEnd;

    // 停机时长
    private Double repairDownHour;

    // 维修工时
    private Double repairUseHour;

    // 维修总费用
    private Double repairAmountAll;

    // 配件总费用
    private Double repairPartAll;

    //派给哪些人
    private String dispatchUserIds;
    //派给哪些人
    private String dispatchUserNames;

    //派单接收人
    private String dispatchUserIdAccept;
    //派单接收人
    private String dispatchUserNameAccept;

    //科室验收结果
    private Boolean repairAcceptResult;
    //科室验收人
    private String repairAcceptUser;

}